import React from 'react'
import { Button } from 'antd';

export default function MyButton(props) {
  // dangerStatus :danger:true/false 
  const { type, size, title, dangerStatus, bgc, color, icon } = props
  return (
    <div>
      <Button icon={icon ? icon  : ''} danger={dangerStatus} size={size} type={type} style={{ backgroundColor: bgc, color: color }}>{title}</Button>
    </div>
  )
}
